package com.neusoft.feign;

import java.util.List;

/**
*@author chj
*@date 2025年3月15日
*/
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.GetMapping;

import com.neusoft.feign.impl.FoodFeignClientCallBack;
import com.neusoft.po.CommonResult;
import com.neusoft.po.Food;


//@FeignClient注解的fallback属性指定熔断降级方法
@FeignClient(name="food-server",fallback=FoodFeignClientCallBack.class)
public interface FoodFeignClient {
	@GetMapping("/Food/FoodList")
    public CommonResult<List> listFoodByBusinessId(@RequestParam("businessId") Integer businessId);
}
